//
//  RBEmptyView.m
//  zhongzhenglu
//
//  Created by mac on 2022/11/4.
//

#import "RBEmptyView.h"
#import "RBThemeConfig.h"
#import <Masonry.h>
#import "RBDefine.h"

@interface RBEmptyView()

@property(nonatomic, strong) UILabel *textL;

@end

@implementation RBEmptyView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self)
    {
        self.textL = [RanTool labelWithFontSize:13 weight:0 color:[RBThemeConfig textBlackColor] align:0 text:@"暂无数据"];
        [self addSubview:self.textL];
        [self.textL mas_makeConstraints:^(MASConstraintMaker *make) {
            make.center.mas_equalTo(0);
        }];
    }
    return self;
}

- (void)setText:(NSString *)text
{
    _text = text;
    self.textL.text = text;
}

@end
